<extend name="Base/common"/>
<block name="header">
{:hook('mobileTopNav',array('title'=>'团购列表'))}
</block>
 
<block name="body">
<script>
    seajs.use(['common', 'order'], function(common, o){
      var url = window.location.href;
      order = o;
      o.bindList();
      common.loadmore(url);
    });
    seajs.use('join', function(join){
      join.listsBind();
      $('.jiathis_button_cqq').bind('mousedown',function(){
        myshare(this);
      });
      $('.jiathis_button_weixin').bind('mousedown',function(){
        myshare(this);
      });
      function myshare(obj){

        var goodsname = $(obj).parent('.jiathis_style_24x24').find('.goodsname').val();
        var sumary = $(obj).parent('.jiathis_style_24x24').find('.sumary').val();
        var goodsurl = $(obj).parent('.jiathis_style_24x24').find('.goodsurl').val();
        var imgurl = $(obj).parent('.jiathis_style_24x24').find('.imgurl').val();
        jiathis_config  = {
          url:goodsurl,
          title:goodsname,
          summary:sumary,
          pic:imgurl,
          } 
      }
    });
  </script>
  <script type="text/javascript" src="http://v3.jiathis.com/code_mini/jia.js" charset="utf-8"></script>
  <div class="list-bg" id="Z_load_itemlist">
    <notempty name="list">
      <include file="joinList"/>
    <else/>
      <p class="list-empty">您暂时没有{$meta_title}。</p>
    </notempty>
  </div>
</block>

<block name="script">
  <!-- <script type="text/javascript">
    seajs.use(['common', 'order'], function(common, o){
      var url = window.location.href;
      order = o;
      o.bindList();
      common.loadmore(url);
    });
  </script> -->
</block>

